package cn.hl.hm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.hl.hm.entity.TReviewsEntity;

public interface TReviewsEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TReviewsEntity record);

    int insertSelective(TReviewsEntity record);

    TReviewsEntity selectByPrimaryKey(Integer id);
   
    @Select("SELECT id as id,create_time as createTime, content as content, sender_id as senderId, driver_id as driverId, order_id as orderId, rank as rank, status as status from t_reviews  where order_id=#{userId} limit 1")
    public TReviewsEntity selectByReviewsOne(@Param("userId") Integer userId);

    int updateByPrimaryKeySelective(TReviewsEntity record);

    int updateByPrimaryKey(TReviewsEntity record);
    TReviewsEntity selectByReviews(Map<String,String>map);
    //查询司机评论列表
   List<TReviewsEntity> selectByReviewsList(Map<String,Object>map);
}